package com.my.test.java.thread;

public class ThreadBean implements Runnable{

	private String name;
	private String test;
	
	public ThreadBean(){}
	public ThreadBean(String name,String test){
		this.name = name;
		this.test = test;
	}
	
	@Override
	public void run() {
		synchronized (name) {
			System.out.println(Thread.currentThread().getName()+",name="+name+",test="+test);
			this.name = "haha";
			this.test = "testttt";
		}
	}

}
